package com.peng.demo1;

public class ServiceProxy implements service{
    private ServiceImpl service;

    public void setService(ServiceImpl service) {
        this.service = service;
    }

    @Override
    public void add() {
        show();
        service.add();
    }

    @Override
    public void delete() {
        show();
        service.delete();
    }

    @Override
    public void update() {
        show();
        service.update();
    }
    public void show(){
        System.out.println("Debug进入方法");
    }
}
